package com.shop.shoporder.mapper;


import com.shop.shoporder.entity.GoodSpec;
import com.shop.shoporder.entity.GoodsDetailsSpce;

import com.shop.shoporder.entity.GroupbuyGoodDetail;
import com.shop.shoporder.entity.WapGoodsSpec;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface WapGoodsDetailsMapper {
        /**
         * 商品ID和规格ID查询商品详情
          * @param goodsId
         * @param specId
         * @return
         */
        WapGoodsSpec selectGoodsDetailsByGoodIdAndSpecId(@Param("Id") int goodsId, @Param("specId") int specId);

        List<GoodsDetailsSpce> selectDetailsSpecListByGoodsId(@Param("Id") int goodsId);

        //获取商品和指定的规格商品详情
        GoodSpec getGoodSpecDetail(@Param("Id") int goodsId, @Param("specId") int specId);

        //获取产品详情包含多个规格
        GroupbuyGoodDetail getGroupbuyGoodDetail(@Param("Id") int goodsId);

}
